import request from '@/api/request'

function newslist(params) {
  return request({
    url: '/admin/xy/news/list',
    method: 'get',
    params
  })
}
function newsdel(params) {
    return request({
      url: '/admin/xy/news/del',
      method: 'get',
      params
    })
  }

  function newssave(params) {
    return request({
      url: '/admin/xy/news/save',
      method: 'post',
      params
    })
  }
  function newsdetail(params) {
    return request({
      url: '/admin/xy/news/detail',
      method: 'post',
      params
    })
  }
  function newsupdate(params) {
    return request({
      url: '/admin/xy/news/update',
      method: 'post',
      params
    })
  }
export default{
    newslist,
    newsdel,
    newssave,
    newsdetail,
    newsupdate
}